﻿using SqlSugar;

namespace 档案查询系统网络版.Models
{
    public class SystemLog
    {
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public long Id { get; set; }

        [SugarColumn(Length = 100, IsNullable = false)]
        public string Application { get; set; }

        [SugarColumn(IsNullable = false)]
        public DateTime Timestamp { get; set; }

        [SugarColumn(Length = 10, IsNullable = false)]
        public string Level { get; set; }

        [SugarColumn(IsNullable = true)]
        public string Message { get; set; }

        [SugarColumn(Length = 255, IsNullable = true)]
        public string Logger { get; set; }

        [SugarColumn(Length = 512, IsNullable = true)]
        public string CallSite { get; set; }

        [SugarColumn(IsNullable = true)]
        public string Exception { get; set; }

        [SugarColumn(Length = 100, IsNullable = true)]
        public string MachineName { get; set; }

        [SugarColumn(IsNullable = true)]
        public int? ThreadId { get; set; }
    }
}
